<%-- 
    Document   : viewGoganpa
    Created on : 26-feb-2014, 10:57:43
    Author     : Juan
--%>

<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
    <head>
        <%@include file="../disenoWeb/title.html" %>
        <meta charset="utf-8">
        <%@include file="../disenoWeb/head.html" %>
        <script src="../disenoWeb/js/formulario.js" type="text/javascript"></script>
        <script type="text/javascript" src="../disenoWeb/js/excel.js"></script>
        <script type="text/javascript" src="../disenoWeb/js/jquery.min.js"></script>
        <script type="text/javascript" src="../disenoWeb/js/jquery-ui.min.js"></script>

        <link rel="stylesheet" type="text/css" href="../disenoWeb/jquery-ui/css/redmond/jquery-ui-1.8.4.custom.css"/>
        <link rel="stylesheet" type="text/css" href="../disenoWeb/jquery-ui/css/ui-lightness/jquery-ui-1.8.4.custom.css"/>
        <link rel="stylesheet" type="text/css" href="../disenoWeb/jquery-ui/css/smoothness/jquery-ui-1.8.4.custom.css"/>
        <link rel="stylesheet" type="text/css" href="../disenoWeb/jquery-ui/css/flick/jquery-ui-1.8.4.custom.css" id="link"/>
        <link rel="stylesheet" type="text/css" href="../disenoWeb/css/base.css" />

        <!-- Ventana Emergente -->
        <link rel="stylesheet" type="text/css" href="../disenoWeb/css/ventanaEmergente.css" />
        <!-- -->

        <script type="text/javascript" src="../disenoWeb/highlighter/codehighlighter.js"></script>	
        <script type="text/javascript" src="../disenoWeb/highlighter/javascript.js"></script>			
        <script type="text/javascript" src="../disenoWeb/javascript/jquery.fixheadertable.js"></script>		
        <script>
            /*Ventana emergente*/
            $(document).ready(function() {
                $("#b2").click(function() {
                    $("#dialogo2").dialog({
                        width: 590,
                        height: 350,
                        show: "scale",
                        hide: "scale",
                        resizable: "false",
                        position: "center"
                    });
                });
                $('#b2').show();
            });
        </script>
        <!--[if lt IE 7]>
    <div style=' clear: both; text-align:center; position: relative;'>
        <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
                <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
        </a>
    </div>
        <![endif]-->
        <!--[if lt IE 9]>
                    <script type="text/javascript" src="js/html5.js"></script>
            <link rel="stylesheet" href="css/ie.css" type="text/css" media="screen">
            <![endif]-->
    </head>
    <body id="page2" onload="javascript:cambiarVisualizacionFormularioKegg();">

        <!--==============================header=================================-->
        <header>
            <%@include file="../disenoWeb/divHeader.jsp" %>
            <div class="menu-row">
                <div class="menu-bg">
                    <div class="main">
                        <nav class="indent-left">
                            <ul class="menu wrapper">
                                <%@include file="menuGoganpa.html" %>
                            </ul>
                        </nav>
                    </div>
                </div>
            </div>
            <div class="row-bot">
                <div class="center-shadow">
                </div>
            </div>
        </header>

        <!--==============================content================================-->



        <div id="encima-tabla">

            <div class="contenido-ventana">

                <% String titulo = (String) session.getAttribute("goganpaRed");
                    String org = (String) session.getAttribute("orgGO");
                %>



                <div id="dialogo2" class="ventana"  title="<%=titulo.toUpperCase()%>">



                    <form id='download-form' action='../utilidades/downloadFile.jsp' method='post'>
                        <input name='tituloPDownload' id='tituloPDownload' type='hidden' value="<%=titulo%>"/>
                        Download Sif: <input class='download-button' title='Download' 
                                             name='nameTituloDownload' id='nameTituloDownload'
                                             formtarget='_blank' type='submit' 
                                             style='width: 30px; height: 20px; margin-left: 40px;'
                                             value=''/>
                    </form>
                    <b><u>Organism:</u></b> <%=org%></br>


                    <%
                        List genes = (List) session.getAttribute("genes");%>
                    <b><u>Number of genes:</u></b> <%=genes.size()%>
                    </br>

                    <b><u>List of genes:</u></b>
                            <%
                                String listaGenesString = "</br>";
                                if (genes != null) {
                                    for (int i = 0; i < genes.size(); i++) {
                                        listaGenesString += genes.get(i);
                                        listaGenesString += "</br>";
                                    }
                                }
                                out.print(listaGenesString);

                            %>

                </div>
            </div>

            <div id="b2" class="boton-ventana">Network <img width="20px" height="20px" src="../disenoWeb/images/information.png" alt="View information of entry net"/>
            </div>
            <iframe height="640px" width="100%" src="../utilidades/graphNet.jsp"></iframe>

            <!--==============================content================================-->


            <!--==============================footer=================================-->
            <footer>
                <%@include file="../disenoWeb/footer.html" %>
            </footer>
            <script type="text/javascript"> Cufon.now();</script>
    </body>
</html>



